package adapter.squarepeg;

//http://sourcemaking.com/design_patterns/adapter/java/2

public class Demo {
	public static void main( String[] args ) {
	      RoundHole        rh = new RoundHole( 5 );
	      SquarePegAdapter spa;

	      for (int i=6; i < 10; i++) {
	         spa = new SquarePegAdapter( (double) i );
	         // The client uses (is coupled to) the new interface
	         spa.makeFit( rh );
	      }
	   }
}
